package piconode.tutorials;

import piconode.factory.objectivefunctions.ObjectiveFunction;

public class Sin7ObjectiveFunction extends ObjectiveFunction {

	@Override
	public double[] getOutputValue(int __i) {
		// double result = 0.5 * Math.sin( (double)(__i) / 4.0 );
		double result[] = new double[1];
		result[0] = 0.5 * Math.pow(Math.sin((2.0 * Math.PI * __i) / (10 * Math.PI)), 7);
		return result;
	}

	@Override
	public double[] getInputValue(int __i) {
		double result[] = new double[1];

		result[0] = Math.sin(__i / 5.0);

		return result;
	}

}